Dynomotion

Group: DynoMotion Message: 12899 From: jasonengle944 Date: 3/2/2016
Subject: Rapid motion in Kmotion
Hi Tom,
 I am in need of some help with my rapid motion in K motion cnc.exe 4.33q
I have kmotion cnc.exe starting up with windows 7 64bit when I turn on my Pc.
The initialization is flashed to memory.My problem is that my V,A,J in the step response screen
match my initial 3 axis c program that is flashed to memory but when I run kmotion on startup with a gcode program the rapids are slow and z axis starts to move before I reach my rapid position.Strange thing is if I
leave kmotion cnc open and open the step and response screen and press the move button on all axis and then close step response,I then can run in kmotion cnc with gcode and everything works great at rapid speeds.
Could this be something with the startup folder in windows.
2 )Also I would like to control the rapid moves with a pot, like I do with FRO. I tried to copy and modify the set fro with pot cprogram with no luck. I,m new to c programming and don't  know much,but learning as I go.Is this something you can help me with?
Thanks 


Group: DynoMotion Message: 12901 From: Tom Kerekes Date: 3/2/2016
Subject: Re: Rapid motion in Kmotion
Hi Jason,

We prefer you do not flash user programs to KFLOP.  Rather Configure a User Button in KMotionCNC to run the initialization C program.  You can remove flashed User programs and data from KFLOP by Flashing "New Version".

But anyway it sounds like your Initialization C Program doesn't have the right values.  Or it may not be set to "Launch on Power Up".  If you manually run the Program from the KMotion.exe C Programs Screen or a KMotionCNC button do things work correctly?

Regarding Rapid FRO those commands would need to be added and supported by KMotionCNC.  The equivalent of PC_COMM_SET_FRO_INC.  Is that what you are referring to?

Regards
TK

On 3/2/2016 8:38 AM, jasonengle944@... [DynoMotion] wrote:
 

Hi Tom,
 I am in need of some help with my rapid motion in K motion cnc.exe 4.33q
I have kmotion cnc.exe starting up with windows 7 64bit when I turn on my Pc.
The initialization is flashed to memory.My problem is that my V,A,J in the step response screen
match my initial 3 axis c program that is flashed to memory but when I run kmotion on startup with a gcode program the rapids are slow and z axis starts to move before I reach my rapid position.Strange thing is if I
leave kmotion cnc open and open the step and response screen and press the move button on all axis and then close step response,I then can run in kmotion cnc with gcode and everything works great at rapid speeds.
Could this be something with the startup folder in windows.
2 )Also I would like to control the rapid moves with a pot, like I do with FRO. I tried to copy and modify the set fro with pot cprogram with no luck. I,m new to c programming and don't  know much,but learning as I go.Is this something you can help me with?
Thanks 



Group: DynoMotion Message: 12904 From: jasonengle944 Date: 3/3/2016
Subject: Re: Rapid motion in Kmotion
Hi Tom,
Thanks for the reply.I will try flashing new version and using the init on kmotion cnc only this weekend.
As for my second question, Pertaining to rapid over ride.I was using SetFROwithPot.c for FRO.I also used this cprogram for the spindle speed over ride by replacing the FRO statement with SSO and it works fine.I tried to do the the same  by replacing FRO with RFRO in the cprogram but it did not work with Kmotion cnc. So you stated earlier that Kmotion cnc would need to be configured for this.Would that be with using windows VB 2008 or 2013? Thanks
Group: DynoMotion Message: 12935 From: jasonengle944 Date: 3/9/2016
Subject: Re: Rapid motion in Kmotion
Hi Tom,
Just getting back to you . I was able to identify my problem with my V.A.J. I had the right settings in my Int.c program but not in my homing .c program. So I corrected the settings and every thing is working good.
I have a total of 10 user.c programs that were modified for my machine. There are only 7 threads to compile download and save. I have read threw the forums about copying programs to the Int.c file . Is there a way to call and download those files from a single thread? Or should I try copying and pasteing these c programs together to use as less threads as possible.Thanks
Group: DynoMotion Message: 12936 From: Tom Kerekes Date: 3/9/2016
Subject: Re: Rapid motion in Kmotion
Hi Jason,

What do your 10 programs do and how are they invoked?  If they are loaded and invoked from KMotionCNC User Buttons or from M Codes then multiple programs can use the same Thread space as long as they never execute at the same time.

Regards
TK

On 3/9/2016 4:57 PM, jasonengle944@... [DynoMotion] wrote:
 
Hi Tom,
Just getting back to you . I was able to identify my problem with my V.A.J. I had the right settings in my Int.c program but not in my homing .c program. So I corrected the settings and every thing is working good.
I have a total of 10 user.c programs that were modified for my machine. There are only 7 threads to compile download and save. I have read threw the forums about copying programs to the Int.c file . Is there a way to call and download those files from a single thread? Or should I try copying and pasteing these c programs together to use as less threads as possible.Thanks

Group: DynoMotion Message: 12937 From: jasonengle944 Date: 3/9/2016
Subject: Re: Rapid motion in Kmotion
Three of my programs are tied to user buttons in Kmotion cnc. They are Int,Home,and Handwheel 2,
the others are Jog axis with buttons, Manual tool change, Set fro with pot, Set Sso with pot, Start spindle with buttons, and so on. I use Kmotion exe. to download the rest. Attached are some pics of my mill and the control I built. I have a touch screen, but I am old school when it comes to using manual buttons. Running Kflop,Kanalog,and Konnect. If A user button in Kmotion cnc is Invoked that button is tied to a thread in Kmotion.exe Correct? So would I be able to just executed a c program threw Kmotion cnc using a user button with out it tied to a thread in Kmotion .exe? thanks for the help
  @@attachment@@
Group: DynoMotion Message: 12938 From: jasonengle944 Date: 3/9/2016
Subject: Re: Rapid motion in Kmotion
Sorry Tom, I think I miss under stood what you told me. So I could set up multiple user  buttons in Kmotion cnc 
tied to specific c programs, and use  the same thread # as long as I  execute them one at a time. Sorry for any confusion.
Group: DynoMotion Message: 12939 From: Tom Kerekes Date: 3/9/2016
Subject: Re: Rapid motion in Kmotion
Hi Jason,

Nice machine.

Yes this statement is more correct.  KFLOP is the thing that has the 7 Thread Spaces for programs.  KMotion.exe is not needed to load and run programs.  In fact the idea is to only use KMotion.exe initially to figure out the configuration of the machine and to develop and debug any C Programs. After that KMotion.exe is no longer used or needed.  The buttons, MCodes, etc in KMotionCNC use them.

Regarding all your programs and required Theads:

Normally only about 3 Threads are actually required.

Thread #1 is used for the Init Program and has a loop after the initialization is complete that runs forever servicing your MPG, FRO Pots, External buttons, etc...  This would require you to merge all these misc operations and programs into one large loop.   See Also:
http://www.dynomotion.com/wiki/index.php?title=KFLOP_C_Programs#Performing_multiple_Operations_continually_in_a_forever_Loop

Thread #2 might be used for Homing and Tool Changes.  You would normally never do those at the same time so they could use the same Thread number.

Thread #3 might be used for Spindle control operations. 

HTH
Regards
TK

On 3/9/2016 6:19 PM, jasonengle944@... [DynoMotion] wrote:
 
Sorry Tom, I think I miss under stood what you told me. So I could set up multiple user  buttons in Kmotion cnc 
tied to specific c programs, and use  the same thread # as long as I  execute them one at a time. Sorry for any confusion.

Group: DynoMotion Message: 12949 From: jasonengle944 Date: 3/14/2016
Subject: Re: Rapid motion in Kmotion
Thanks for you're help Tom,
I was able to put all the c programs and user buttons together  this weekend on my mill.Wow! Every thing works great.I will upload some videos in the future after completion of my 4axis mill.Just wanted to say thanks
for all the support you give to the forums.